{include file='header.tpl'}
{include file='admin/leftcol.tpl'}
<div id="left-area">
    <div class="entry post clearfix width-for-all-img">
        <div class="breadcrumb">
            <span class="raquo"></span><a href="/">Главная</a>
            <span class="raquo"> &raquo; </span><a href="{geturl controller="admin" action="tarif"}">Тарифы</a>  

        </div>
        <h1 class="category-title">Тарифы</h1> 

        <table class="tdzayavki" style="width:100%">
            <thead>
                <tr> 
                    <td class="tb1">Название</td>
                    <!-- <td class="tb2">Количество дней</td>-->
                    <td class="tb3">Количество товаров</td>
                    <td class="tb3">Цена</td>
                    <td class="tb5">Действие</td>
                </tr>
            </thead>

            {foreach from=$tarif item='item'}
                <tr>
                    <td class="nocontainer fs12"> {$item->name}</td>
                    <!--<td class="nocontainer">{$item->count_day}</td>-->
                    <td class="nocontainer">{$item->count_product}</td>
                    <td class="nocontainer">{$item->price}</td>
                    <td>
                        <a href="{geturl route='edittarif' id=$item->getId()}"><img src="/images/index-14.png" alt="Редактировать"></a> 
                        <a href="{geturl route='deletetarif' id=$item->getId()}"><img src="/images/index-07.png" alt="Удалить"></a>

                    </td>

                </tr>
            {/foreach} 
        </table>
        <h3>Добавить поле</h3>
        <div class="form"> 
            <form method="post" action="{geturl action='tarif'}">

                <div class="row">
                    <label>Название: </label>    
                    <input type="text" name="name" />
                </div>
                <!--  <div class="row">
                   <label>Количество дней: </label>   
                   <input type="text" name="count_day" />
                  </div>-->
                <div class="row">
                    <label>Количество товаров: </label>      
                    <input type="text" name="count_product" />
                </div>
                <div class="row">
                    <label>Цена в гривнях: </label>      
                    <input type="text" name="price" />
                </div>

                <div class="submit"><input type="submit" class="button green-pink" value="Добавить" /></div>

            </form>

        </div> 

    </div>
    {include file='footer.tpl'}